package com.irdstudio.apicenter.gateway.web;

import com.irdstudio.apicenter.gateway.core.token.AccessToken;

/**
 * 专门处理token异常
 * 
 * @author fmf
 * @date 2016-01-17
 */
public class MaccsTokenException extends MaccsException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 269131959832398996L;

	/**
	 * 错误码, 10000 系统内部错误
	 */
	private String errorCode = "10000";

	/**
	 * 显示给用户的错误信息，可以是多语言资源中的资源ID
	 */
	private String showMessage;

	private AccessToken accessToken;

	public MaccsTokenException() {
		super();
		// TODO Auto-generated constructor stub
	}

	public MaccsTokenException(String errorCode, String message, Throwable cause) {
		super(errorCode, message, cause);
		// TODO Auto-generated constructor stub
	}

	public MaccsTokenException(String errorCode, String message) {
		super(errorCode, message);
		// TODO Auto-generated constructor stub
	}

	public MaccsTokenException(String message, Throwable cause) {
		super(message, cause);
		// TODO Auto-generated constructor stub
	}

	public MaccsTokenException(String message) {
		super(message);
		// TODO Auto-generated constructor stub
	}

	public MaccsTokenException(Throwable cause) {
		super(cause);
		// TODO Auto-generated constructor stub
	}

	public MaccsTokenException(String errorCode, String showMessage, AccessToken accessToken) {
		super();
		this.errorCode = errorCode;
		this.showMessage = showMessage;
		this.accessToken = accessToken;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getShowMessage() {
		return showMessage;
	}

	public void setShowMessage(String showMessage) {
		this.showMessage = showMessage;
	}

	public AccessToken getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(AccessToken accessToken) {
		this.accessToken = accessToken;
	}
	
	

}